﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QLTH_DTO;
using QLTH_DATASSECC;

namespace QLTH_BUSINESS
{
   public class clsHocSinhBU
    {
       private readonly clsHocSinhDA _hsda;

       public clsHocSinhBU()
       {
           _hsda = new clsHocSinhDA();
       }

       public DataTable DanhsachHS()
       {
           return _hsda.DanhSachHocSinh();
       }

       public void Open_excel(String _filename)
       {
       _hsda.Open_Excel(_filename);
       }

       public DataTable DanhSachHocSinhExcel()
       {
        return _hsda.DanhSachHocSinhExcel();
       }

       

       public DataTable TimKiemHSTheoDK(String dk)
       {
           return _hsda.TimKiemHStheoDK(dk);
       
       }

       public int ThemHS(clsHocSinhDTO hs)
       {
           return _hsda.ThemHS(hs);
       }

       public int CapNhatHS(clsHocSinhDTO hs)
       {
           return _hsda.CapNhatHS(hs);
       }

       public int XoaHS(clsHocSinhDTO hs)
       {
           return _hsda.XoaHS(hs);
       }

       public DataTable Lay_HS_TheoMa(String _mahs)
       {
           return _hsda.Lay_HS_TheoMa(_mahs);
       }

       public string macuoi()
       {
           return _hsda.macuoi();
       }
    }
}
